Multicolor Tile Puzzle

The colored-tile maze is a puzzle based upon multiple different types of colored tiles, each with their own function. It is encountered twice throughout the game. It is first found in Snowdin Forest, immediately after the second blue X puzzle, and then again in Hotland after listening to Metatton's song. The rules are as follows: These rules do not end up being used at all in the first encounter, as the machine malfunctions and simply makes a line of pink bordered by red tiles, which the protagonist walks right across. In the second encounter, before starting the puzzle, Mettaton will start to explain the rules, but then will say, "''DIDN'T WE SEE THIS PUZZLE ABOUT A HUNDRED ROOMS AGO? THAT'S RIGHT. YOU REMEMBER ALL THE RULES, DON'T YOU?" ''and starting the puzzle.
 * Red tiles are impassable. (You cannot walk on them)
 * Yellow tiles are electric. (They will electrocute you and send you back to the previous tile)
 * Green tiles are alarm tiles (They will summon a monster to fight, even though it never actually happens immediately during the second puzzle)
 * Orange tiles make you smell like oranges.
 * Blue tiles are Water tiles. (You can swim through them, but you cannot if you smell like oranges. And if a blue tile and a yellow tile are touching, the water will zap you and bring you back to the previous tile you stepped on. If you are lemon scented when swimming nothing happens.)
 * Purple tiles are slippery. (They will cause you to automatically move to the next tile in the direction you are facing. However, they will make you smell like lemons, which will remove your orange scent if you have stepped on an orange tile previously.)
 * Pink tiles don't do anything and can be stepped on freely.

Trivia

 * The machine that is used in Snowdin Forest to generate the puzzle heavily resembles Mettaton, which could mean either he was used to activate the Colored-Tile Maze back at Snowdin, or that this puzzle was designed after him.
 * Not stepping on a single green tile the second time the puzzle is faced triggers different dialogue with Mettaton when the time is up.