Added vars that were required and casted the var from float to int.

Now moving on to the nested loop
Somehow files were deleted hopefully this fixes them.