Make code more readable yo

Use Math.floor instead of mod math