Closes  #10 - condense position boundary check
Merge pull request #14 from EvanSimpson/issue10

Condense position boundary check