Implemented a move legality method for pawns