Fixed wrong data type
fixed a wrong case in function name
Changed the coordinates to doubles from ints, to allow smoother movement
Inputstate -> InputState