Changing interface for getting/updating player coords.
Reorganizing code into more appropriate file structure.