added cancan
indentation and have prevented users accessing each others edit page
everything now functional. still noeed to sort out page refresh when playing against computer