updated tile logic and can now locate tile coordinate