made player x and y global vars
made player x and y global vars