Mediam ai v2

Much improved medium AI, cleaner code