Does not work fully. Need to pass around collisionstate so not to write over one collisionOccured in one direction.