Add pseudocode for AI class

Some methods  return void for the sake of compilation with pseudocode,
they are commented with the correct return values.