not working but updated
it works
added if loop
all code
broken
broken
nearly there
nearly there
fixed with ints