Begining of level selector

MAX_X and MAX_Y inverted bugfix.