fixed bug with improper use of str.format
added a test game
split editor and runner into separate files and fixed several small bugs