replaced bools with ints
fixing errors
xhanged array functiona to pointer functions
another update
fixed some bugs
trying to solve pointer/array issues