     /// Rotates the current Tetromino
     func rotate() {
         currentTetromino?.rotate()
+        
+        if findCollisions() { unrotate() }
+    }
+    
+    /// Undoes the last rotation
+    func unrotate() {
+        // Just rotate three times :P
+        for i in 0..<3 { currentTetromino?.rotate() }
     }
     
     /// Moves the current tetromino one row down

    
    /// Sets the x coordinate of the current tetromino
    func setXCoordinateForCurrentTetromino(xCoordinate: Int) {
        currentTetromino?.rootTile.localCoordinates.x = xCoordinate
    }
    
}

//

import Foundation

enum Direction {
    case Left;
    case Right;
}

class Game {

