object oriented approach to pigGame implemented