Implemented allowOnBoard() function.