Substitution is permitted only during stoppages of play in baseball and association football (soccer), and a player who has been replaced out of a game normally cannot re-enter it. In basketball, a player can be substituted out for any reason and then returned to the game; however, once he or she leaves the court, they cannot re-enter unless removed for medical reasons. In ice hockey, a player may be substituted at any time during the game for any reason. In all three sports, a player who has been replaced remains on the bench while the opposing team uses its maximum number of substitutes. If a coach wants to bring back a player who has been replaced, he or she can do so before the end of the period or game. The player who has been replaced retains his or her eligibility for further substitutions. In baseball, a player can be replaced in two ways: when a manager removes him from the field team through the use of the pitching rubber or when he is injured and not able to continue playing. A player is not required to stay on the field until the end of an inning if he feels ill or hurt. He can leave the game at any time during an inning and a replacement player will be brought in to finish the inning. A substitute in American football is allowed only during stoppages in play.