moo is set up to increase every time the button is pressed, then depending on the value of moo a different colour of led is turned on. then there is a little if statement which stops moo from getting too large.

the problem with this is that moo was increasing constantly while the button was down, which meant about 1000 time a second or whatever.

which means i added poo, poo is a switch that stops the arduino from reading pin 8 until the button is released. this way the led will only change colour once every time you press the button.