Classic tetris game on javascript