1. Remove assignment warning
2. Use int on is_outside_map() input.
3. return still operates with ints