Cleaned up game loop and added some input error checking
Added edge parsing/drawing code
Merge branch 'maptools'