Added edge scrolling, made autoattacking almost work.