Removing warning message: converting int to float on line 65 and 66