fixed minor details with main page script, started script for game logic