This function is used by the app to move the player to the position that the mouse is pointing at. If we avoid the movement if out of bounds, it would result in the user coming from the right side of the screen and the game not picking it up. It could also avoid movement if the frame rate is too slow and the user moves the mouse too much to the right.

Why not force the movement to the edge if the movement is out of bounds?

```javascript
if (reachLeftLimit) {
    // out of bounds to the left: move to left edge
    self.cornerX = 0;
} else if (reachRightLimit) {
    // out of bounds to the right: move to right edge
    self.cornerX = gridCalculator.getRealWidth() - gridCalculator.getBlockWidth();
} else {
    // in screen: move to position being pointed at
    self.cornerX = pos - gridCalculator.getBlockWidth() / 2;
}
```