Fix random ball movement bug