Transferred level editor to the game

Made it because having two programs using almost exact same code is not
a good option.