fixed lots of bugs and added character movement