Datastructures for use in games