Update klingon.lua

* Split qx and qy boundary condition to another if statement
  to prevent access to non-existent (nil) Quad[qx][qy]
Update getpar.lua

* Note M.getcodpar() must not have false or nil in the
  given command table
Update klingon.lua

* Fix possible math.random(0, i - 1) range error
* Fix spacing of "local i" declaration
Update move.lua

* Fix coordinate calculation code
Update phaser.lua

* Fix manual flag values
* Fix scope of variables