Play chess in console using java