adding the basic game AI