Play chess in console using Java