Added checks so that you can't exceed the bounds of the map array.
Merge branch 'LOLTESTING' of https://github.com/DComm2013Network/CutThePower into LOLTESTING