fixed some input and movement stuff