fixed movement and projectile trail and added spacekey event handler