Trying to create a basic 2D platformer in python