Completed logic for completion of play

Signed-off-by: Pritika Nilaratna <pritika.16@gmail.com>