Solved StoneWall in java