Implemented movement of the mainCharacter.