implemented input controller

all input will now be processed through the Input class