moved pjsgame
refactored