got the basic gameplay working