Create singleplayer.js

This is the singleplayer file