fixed errors
added playerFlag script to prefabs