added level functionality
Working with text files for foreground and background