Don't make the rectangles touch , and both rectangles have to clear the stage that they're on, before getting to the next stage.