changing caluclations for potential fields to be more general
Merge branch 'master' of https://github.com/mukk88/cs470
Merge branch 'master' of https://github.com/mukk88/cs470