finished up nil coding, just need to add the pattern and tweaking