Java implementation of the Tetris game