add methods to game and check if goal is achieved

also fixed a bug inside placeObject: pixels have to be casted in ints
before a comparison with the editor width or height. Also created some
TODOs in the command class
merge

Conflicts:
	src/dragdrop.html