Adjusted Math to Build Grid