Red Ball loses 1 bounce when touching red. Red Ball gains 1 bounce, clones itself, and teleports when touching green. Red Ball gains (previous amount of bounces) bounces and teleports when touching blue. Red Ball loses (previous amount of bounces) bounces and gets deleted when touching yellow.