Corrected typo when getting XY coord
Adding player logic