Open closed principle

Opened a pull request for comments
the method below the_computer_is_playing switches on type.  What can you do to get rid of this type check too?