Set up of code to get all valid moves of a given piece