Wrote module for converting user input into usable coordinates