Implemented movement of the mainCharacter (2).