Game almost works, render issues and it doesn't exit