game runs but crashes at rendering