Source code: https://jackhetech.io?p=tetris-jsPLEASE NOTE: I made an update to the Rotate() function in the final source