added on_collision to Partitioner