Implementation of old tetris game with canvas