Improved greedysnake