Code problem with LED

You need to post the sketch again now you have corrected it - we cannot see your correction!

Also the check_switches function (unless you have changed it!) appears to return values between 0 and 6. But your switch statement is a) incomplete with } missing, and b) does not cope with 0 or have a default value.