added tabs
added free mode add function
added clear function for tutorial tab and free mode tab
cleaned up some declarations