Hi ..it’s one of those where the event above is triggering the event below. Cures for this are an object timer ‘turn’ starting each time it turns and then a condition on the turn event ‘turn’ timer of object greater than .1s. start timer on object creation. Or possibly ‘trigger once’ or a Boolean variable ‘has turned’ but this might not work if it’s moving quickly. Or you could use ‘turn right blocks’ and ‘turn left blocks’ or an object var attached to ‘groundset’ called ‘turn’ which can be 'left’or ‘right’
Edit: your movent lines might be backwards. It’s moving right when flipped and left when not flipped. I think it should be reversed. Flipped, left and not flipped, right. Otherwise it will get stuck bouncing around a wall.