Added settings menu. Current bug: sf() crashes the program on second call