started check tetris algorithm