Platformer implementation with pygame