move validation

moves are now validated.
also, functions.h has all functions used in main