An iOS game designed to help users learn key chemical reactions through playful interaction.
Game mechanics
The player swipes across the display, moving all element cubes in the same direction. The goal is to create a certain molecule in which the player lets different elements or molecules react.

code sample
Determine swipe direction