mod built into add, parseInt added
Started with point doubling