Tring to get Level selection to work

Added some debugging lines to the code