An Artificial Intelligence Approach for Modeling Molecular Self-assembly: Agent-based Simulations of Rigid Molecules