added space reset in triangle game