Implemented accurate way to get tile pos