Implementation of Tetris using Java