Added calculating AI action for cell
Added debugging trace on centering