implemented last game functionality