I am trying to make a tetris game. I am trying to work on a function that rotates a 2D variable array 90 degrees (or -90).
For example, given an array like: