ADD some initial player code

Also added some support code in various places.