Bug fixed, a working version of the project.