Did a bunch of stuff with input and also scaling coordinates to window size!