Goal-oriented Behaviour for Intelligent Game Agents