updated ChessMain to accpet int player