source code in java , look's like a chess game