An "intelligent" tetris game in Java with a brain and adversary setting