Currently, pawns can move diagonal despite not capturing any pieces. The two jumps at the beginning is also available regardless of where the pawn is on the board. Need to create restriction to prevent this from happening, so that they move according to general pawn logic
Added logic to prevent the capture movement. Only available when you're about to capture a piece. Also added logic to prevent the double moves unless the pawn is in it's starting position.
Currently, pawns can move diagonal despite not capturing any pieces. The two jumps at the beginning is also available regardless of where the pawn is on the board. Need to create restriction to prevent this from happening, so that they move according to general pawn logic