Added row variable declaration and removed player reference in getLocationView