refactor getPegmanYCoordinate slightly
code review feedback
Merge pull request #520 from code-dot-org/cleanup

refactor getPegmanYCoordinate slightly