modified play method and implemented hint functionality in give hint method