changed MainActivity code to use fencer class rather than a bunch of messy fields