Improvements to readMove function