Changed the code structure

Extracted the main character and level into two separate classes in order to create a better code structure.