Add an boolean variable inCollision in the NP class.