added some global vars for screen dimensions and player position