Now with a simple AI, A* with 2 distance calculations, manhattan and euclidean, alternate between them with F1 and F2, for euclidean and manhattan, respectively. If the player is idle for more than 3.5 seconds the AI takes over. It even knows how to use teleports! It also likes fruits.