working ai and game simulation