work on the input part of the program

added sections to both read x and y and also convert them to usuable
input for the program, made a start with the button press but that is
highly subject to change