Some rearrangements in the drawing function of testsparrow to get more fps