Fixed bug #1 (Crash on invalid input)

Added a function that should resolve the crash when receiving bad input for coordinates.
Also, I disabled the debugging output that I accidentally left on last time. Again, lol.