implementation of a game of bowling