updated server.js to attempt to fix the maze bug

The issue might be that the height & width are mixed up. Hopefully, this will fix it