little code rearranging in sprite groups