a modification of the predator code used for testing shapes