Code clean-up and deprecations

Deprecated old goto() function and replaced with a better logic system,
and removed updateCoords() due to uselessness.