fixed: pirate sprite as a global sprite
added: detect the orientation of the player