refactored some of the play method so that we use less arrays