Added a class for 2D Platformer