added current working code I have for this game project/learning experience.