Cup library defines game mechanics