Refactor: Created seperate getInput(), update(), draw() functions