Tetris game on Java with use of patterns of programming