An Entity Game Framework