Im currently attemping to make a tetris clone, but i've encountered a weird problem.
Everything seems to be in working order, that is, until i clear a line. After every line i clear, they get added to the new piece that falls down, i do not know why this is happening! Can anyone help? thanx a lot!
here's my source code

http://jackyourace.homestead.com/fil...eme_Tetris.txt
Thanks in advance