java for basic Tetris