implemented first unit tests for sliding tile puzzle plus some bug fixes