Creation of levelLoader class; removal of multi lines of code in game