fixed math to map XY to corresponding LED

Hi,

I fixed the math to map the XY values from the accelerometer. It now lights up the correct corresponding LED. If the core+shield is (close to) level alle LEDs are set to green.

This request is part of the OpenGarage Instructables Spark Core Build Night ;-)

Regards,
Christophe VG