an example of a basic command line chess game written in Java