Fixed bug that made illegal movesgit status! also cleaned up variable names