Logic for game finish added