A boy swings his bat in anticipation of hitting a practice ball on a stand .