It's because when you press the text box on the game over screen to restart, you are 'in touch' and when you navigate to the game layout you release the button that becomes 'a touch end' and sets Aiming to 0 for a brief moment. When Aiming is set to 0, it doesn't set the position of the ball to the sprite like it does when Aiming is set to 1. You'll have to rework that logic around the any touch end event and setting Aiming to 0, come up with a foolproof way of forcing that ball position to the sprite or find a way of forcing Aiming=1 at the start of the layout. To clarify, the issue is to do with Aiming being set to 0 on start of layout because you are in a touch from the game over screen, which doesn't set that ball position correctly, whereas when you start the game initially you are not in touch and Aiming=1 so it looks correct.