The MIT license pretty much allows anyone to take your code as do as they please. That includes taking your code to create a commercial game. Check this out this resource on choosing an open source license that works for you: https://choosealicense.com/
If it helps, your assets can be licensed very differently from your code. So while the code may be free for anyone to use, the art/sound/whatever you created will not be available to them. You can have a look here for choosing the right license for your assets: https://creativecommons.org/choose/.