AI Fixed

Added the ability to get the most common colour, works, but I have no
idea how well.