cleaned code and added const on needed functions
I added const on needed places
fixed const error
removed unused function
vector class name changed to vector2