Made the settings menu into a function.

Signed-off-by: bcnjr5 <bcnjr5@gmail.com>