Refactored the translate_input function. It's now two functions for x and y sepretly. Tested them and also added tests for some corner cases after talking about testing with a teacher