added max y and tile position functions to tilemap