creating maps that has a loop and return to home