Added scorekeeping functionality