pawn update v2 and added logic for chess and chess brain