Tetris in Javascript with canvas