Optimisation of the shooting of the player