added game functionality, changed file organization