Trying to create AI for king