Fixed Problem/Bug

Didn't properly compare location in the array to 1.