To rotate a piece, hold down the "R" key and click the left mouse button.
If you are stuck, and want to see the finished pic for help,
click here
.
Note: You will still need to complete the puzzle to reach the code. ;)