Added check in Labyrinth so we know if we are in bounds. Modified getLocation() to be more efficient by calculating the index instead of looping through every Location