Tetris Game in javascript