Pointer now initiates in the centre of the screen.
Slight refactor of writeCoordinates function