added worldToGrid conversions and vice versa