Survival Game in PHP/Flash/HTML5/Javascript