public boolean isStalemate(Player player) {
		for (Field field : this.window.board.fields) {
			if (field.hasPiece() && field.getPiece().isWhite == player.isWhite && this.hasLegalField(player)) {
				return false;
			}
		}
		return true;
	}