Im new to this and the push button in Massimo's book(p.42) The led just goes crazy i follwed the book exactly as it is and it wont still work. I have tested all the wires and button they seem to work fine, is it because the board itself has problems? Thanks.
Probably a floating input.
You need either a pull up or pull down resistor. Also make sure you use a 100ohm-10k resistor on the LED.
Need a schematic.
What exactly do you mean teh LED goes crazy?
Apart from the resistor suggested, have you added code to debounce the button yet (easy)...
Remember, the button doesn't always end up accurately on your desired state unless you add debouncing; follow this tutorial: