Added getTileAt function