Chemical game theory