Fix dangling pointer
Fix undefined memcpy() behavior
Merge pull request #1 from heuripedes/master

Fix game loading