Refactor ingame movement and attack system.