Added a player class with key listeners for moving, paint method for painting and move function for moving.
Added a player class with key listeners for moving, paint method for painting and move function for moving.