processing midterm of tetris like game