A simple tetris clone in Java