free structs

added "simplify button actions" to main menu and fixed bugs in order to
free all memory.
still in need to fix surface freeing.