fixed bug that prevented the continuity of the gameplay