Updated main loop, character movement