Removed JSLint comments
Made sprite function more advanced
Minor fix
Fixed party order