Flips the character according to the side they move

Also commented a lit bit more the code.