Add helper functions to be used by the AI svn path=/trunk/playground/games/ksquares/; revision=617293