arduino mega 2560 not working properly