Three player chess game implementation in Java