refactor: inBounds -> validPosition