Infinite curl up animations

Replaced view constants with a variable. Added if/else logic to check
if the redSquare is on top. Using transitionFromView to remove/add the
redSquare and blueSquare