Changed update() method Now it calls a method canMoveDown(), if that returns true, it moves the current moving blocks down, if false, it stops all blocks, clears full lines and, generates next piece. Also deleted method 'detectCollision()'.
Changed update() method
Now it calls a method canMoveDown(), if that returns true, it moves the current
moving blocks down, if false, it stops all blocks, clears full lines and,
generates next piece. Also deleted method 'detectCollision()'.

matheussilvapb/Tetris