Add inBounds function
Bounds checked movement