Java implementation of Tetris