removed debugger and a few extra spaces
removed hard coding and made MAX_COLUMNS global