Barely managed to beat margit. Does anyone have any advice for what im doing wrong?

Pretty dissapointed with my performance, given how long it took.