fixed the character offset issues and draw the player on top and also started push and pop state on the graphics